package aga.sokoban.model;

public class Level {
	private String title;
	private final int width, height;
	private final CellKind[][] cells;

	public Level(int width, int height) {
		this.width = width;
		this.height = height;
		cells = new CellKind[width][height];
		for (int x = 0; x < width; x++) {
			for (int y = 0; y < height; y++) {
				cells[x][y] = CellKind.Space;
			}
		}
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public int getWidth() {
		return width;
	}

	public int getHeight() {
		return height;
	}

	public CellKind getCell(int x, int y) {
		return cells[x][y];
	}

	public void setCell(int x, int y, CellKind cell) {
		cells[x][y] = cell;
	}
}
